package tester.mock;

/**
 * @author : chub
 * @version : V1.0.0
 * @fileName : Calculator.java
 * @description : TODO
 * @createTime : 2022-10-13 17:18
 */
public class Calculator {

    public int sum = 0;

    public int add (int i, int j) {
        return i + j;
    }

    public int sub (int i, int j) {
        return i - j;
    }

    public int cal (int i, int j) {
        sum = add(i, j);
        sum = add(sum, j);
        sum = sub(sum, i);
        return sum;
    }

}
